/*
 * Decompiled with CFR 0.150.
 */
package com.gys.common.enums;

public enum SpecialMedClass {
    M1("1", "\u6bd2\u6027\u836f\u54c1"),
    M2("2", "\u9ebb\u9189\u836f\u54c1"),
    M3("3", "\u4e00\u7c7b\u7cbe\u795e\u836f\u54c1"),
    M4("4", "\u4e8c\u7c7b\u7cbe\u795e\u836f\u54c1"),
    M5("5", "\u6613\u5236\u6bd2\u836f\u54c1\uff08\u9ebb\u9ec4\u78b1\uff09"),
    M6("6", "\u653e\u5c04\u6027\u836f\u54c1"),
    M7("7", "\u751f\u7269\u5236\u54c1\uff08\u542b\u80f0\u5c9b\u7d20\uff09"),
    M8("8", "\u5174\u594b\u5242\uff08\u9664\u80f0\u5c9b\u7d20\uff09"),
    M9("9", "\u7b2c\u4e00\u7c7b\u5668\u68b0"),
    M10("10", "\u7b2c\u4e8c\u7c7b\u5668\u68b0"),
    M11("11", "\u7b2c\u4e09\u7c7b\u5668\u68b0"),
    M12("12", "\u5176\u5b83\u7ba1\u5236");

    private String code;
    private String name;

    private SpecialMedClass(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (SpecialMedClass form : SpecialMedClass.values()) {
            if (!form.getCode().equals(code)) continue;
            return form.name;
        }
        return null;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

